package com.leyou.item.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.leyou.common.entity.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

@Data
//生成equals(Object other) 和 hashCode()方法
@EqualsAndHashCode(callSuper = false) //callsuper的值决定了在生成equals和hascode方法时是否包含从父类继承的属性
@TableName("tb_category")
public class Category extends BaseEntity {
    @TableId
    private Long id;
    private String name;
    private Long parentId;
    private Boolean isParent;
    private Integer sort;
}
